package househomework;

public class House {
    //编号 房主 电话 地址 月租 状态(未出租/已出租）
    private int houseId;
    private String houseName;
    private String housePhone;
    private String houseAddress;
    private double monthPrice;
    private boolean state;//当前出租状态

    public House( String houseName, String housePhone, String houseAddress, double monthPrice, boolean state) {
        this.houseId = houseId;
        this.houseName = houseName;
        this.housePhone = housePhone;
        this.houseAddress = houseAddress;
        this.monthPrice = monthPrice;
        this.state = state;
    }
    public String toString() {
        return houseId+"\t\t"+getHouseName()+"\t\t"+getHousePhone()+"\t\t"+getHouseAddress()+"\t\t"+getMonthPrice()+"\t\t"+isState();

    }

    public int getHouseId() {
        return houseId;
    }

    public void setHouseId(int houseId) {
        this.houseId = houseId;
    }

    public String getHouseName() {
        return houseName;
    }

    public void setHouseName(String houseName) {
        this.houseName = houseName;
    }

    public String getHousePhone() {
        return housePhone;
    }

    public void setHousePhone(String housePhone) {
        this.housePhone = housePhone;
    }

    public String getHouseAddress() {
        return houseAddress;
    }

    public void setHouseAddress(String houseAddress) {
        this.houseAddress = houseAddress;
    }

    public double getMonthPrice() {
        return monthPrice;
    }

    public void setMonthPrice(double monthPrice) {
        this.monthPrice = monthPrice;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }
}
